<?php
/**
 * Created by PhpStorm.
 * User: steven
 * Date: 2017/9/15
 * Time: 下午2:45
 */

namespace api\controllers;


/**
 * 微信小程序的接口
 * Class WxAppController
 * @package api\controllers
 */
class WxAppController extends BaseAppController
{

    /**
     *  登录接口
     */
    public function actionLogin()
    {
        $request = \Yii::$app->request;
        if($request->isPost){
            $a = $request->post('a');//测试a
            $b = $request->post('b');//测试b
            $c = $request->get('c');//测试c
        }
    }


    /**
     *  获取用户信息
     */
    public function actionGetUserInfo()
    {
        $request = \Yii::$app->request;
        if($request->isGet){
            $a = $request->get('uid');//用户uid
        }
    }

}